package com.hanhai.material.device.model;

import com.hanhai.material.device.entity.*;
import com.hanhai.material.scheduling.entity.SysProductPeople;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.RelationOneToOne;
import jdk.nashorn.internal.ir.annotations.Ignore;
import lombok.Data;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;

@Data
public class ProductRecordIntoModel {
    private String machineName;

    private String machineArea;

    private String shift;

    private String shiftCode;

    private String workPlanId;

    private Date productDate;

    private String summary;

    private int goodNum;

    private int goodNumPeople;

    private int badNumPeople;

    private int badNum;

    private int totalNumPeople;

    private int totalNum;

    private Boolean isEntry;

    private int totalCount;

    private String productId;

    private String productName;

    private String exchangeType;

    private int nowTailBoxCount;

    private int lastTailBoxCount;

    private int totalInto;

    private int totalTodayPeopleInto;

    private int totalHandleInto;

    private String productRecordId;

    private String productRecordShiftId;

    private int detentionToGoodNum;

    private int detentionToBadNum;

    private int willProcessedToGoodNum;

    private int willProcessedToBadNum;

    private int totalGoodNum;

    private int totalBadNum;

    private String createUserName;

    private String updateUserName;

    private int lastTailCountInto;

    private Date actualStartTime;

    private Date actualEndTime;

    private double adjustMachineDuration;

    private String adjustMachineReason;

    private String dataId;

    private String dingId;

    private int willProcessedNum;

    private int detentionNum;

    private String kingGoodId;

    private String kingGoodNo;

    private String kingBadId;

    private String kingBadNo;

    private String kingBadBmId;

    private String kingBadBmNo;

    private String kingDetentionNo;

    private String kingDetentionId;

    private String groupName;

    private List<SysBadRecord> badRecordList;

    private String peopleName;

    private int peopleNum;

    @RelationOneToOne(selfField = "productId",targetField = "productId",dataSource = "scheduling")
    private SysProductInfo productInfo;

    @RelationOneToOne(selfField = "workPlanId",targetField = "id",dataSource = "scheduling")
    private SysWorkPlan workPlan;

    private int actualCycle;

    private double actualTimes;

//    @RelationOneToOne(selfField = "machineName",targetField = "machine
    @Column(ignore = true)
    private SysMachinePlc machine;
    @Column(ignore = true)
    private String jsy;
    @Column(ignore = true)
    private String zdh;

    @Column(ignore = true)
    private Integer tjbl;
}
